﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Hangjing.SQLServerDAL;
using Hangjing.Model;
using Hangjing.Common;
namespace wap
{
    public partial class deliverlocation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string orderid = HjNetHelper.GetQueryString("id");
                CustorderInfo model = new Custorder().GetModel(orderid);
                hfshopname.Value = model.TogoName;
                hflatlng.Value = model.ReveVar2;


                IList<GPS_RecordsInfo> gpslist = new GPS_Records().GetList(1, 1, "jh1=" + model.deliverid, "id", 1);
                if (gpslist.Count > 0)
                {
                    lat.Value = gpslist[0].JH3;
                    lng.Value = gpslist[0].JH2;
                }


            }
        }
    }
}